package org.flow.basic.algorithm;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Collections;
import java.util.List;

/**
 * @author xl-9527
 * @since 2025/6/20
 */
public class ShuffleAlgorithm {


    private static final Logger log = LoggerFactory.getLogger(ShuffleAlgorithm.class);

    public <T> List<T> JdkCollectionShuffle(final List<T> list) {
        log.info("JdkCollectionShuffle 开始运行 -> {}", list);
        Collections.shuffle(list);
        log.info("JdkCollectionShuffle 运行结束 -> {}", list);
        return list;
    }
}
